package com.come4loves.game.server.session;

import io.netty.channel.ChannelHandlerContext;
import io.netty.util.AttributeKey;

public interface ChannelHandlerContextManager {
	public static final AttributeKey<Integer> CONTEXT_INDEX_KEY = AttributeKey.valueOf("contextIndexKey");
	public static final AttributeKey<Long> CONTEXT_ACTOR_ID = AttributeKey.valueOf("contextActorId");

	void put2OnlineList(long actorId, ChannelHandlerContext context);

	void removeOnlineList(ChannelHandlerContext context);

	void removeOnlineList(long actorId);

	void put2AnonymousList(ChannelHandlerContext context);

	void removeFromAnonymousList(ChannelHandlerContext context);

	Long getActorId(ChannelHandlerContext ctx);

	void close(ChannelHandlerContext ctx);
}
